﻿using System.Collections.Generic;
using System.Text;

namespace PublicTransportEnabler.net.Model
{
    public class Footway : Part
    {
    
		private static  long serialVersionUID = -6651381862837233925L;

		public  int Min { get; private set; }
		public  int Distance { get; private set; }
		public  bool Transfer { get; private set; }

		public Footway( int min,  int distance,  bool transfer,  Location departure,  Location arrival,
				 List<Point> path) : base(departure, arrival, path)
		{
			this.Min = min;
			this.Distance = distance;
			this.Transfer = transfer;
		}

		public string ToString()
		{
            StringBuilder builder = new StringBuilder(this.GetType().Name + "[");
            builder.Append("min=").Append(Min);
            builder.Append(",");
            builder.Append("distance=").Append(Distance);
            builder.Append(",");
            builder.Append("transfer=").Append(Transfer);
            builder.Append(",");
            builder.Append("departure=").Append(this.Departure.ToDebugString());
            builder.Append(",");
            builder.Append("arrival=").Append(this.Arrival.ToDebugString());
            builder.Append("]");
            return builder.ToString();
		}
	
    }
}